package com.heima.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.heima.pojo.User;
import com.heima.service.impl.UserServiceImpl;

public interface UserService {

    //value是资源名称，是必填项。blockHandler填限流处理的方法名称
    @SentinelResource(value = UserServiceImpl.RESOURCE_NAME_QUERY_USER_BY_NAME, blockHandler = "queryUserByUserNameBlock")
    User queryByUserName(String userName);
}
